#ifndef Arp_h
#define Arp_h

#include "WProgram.h"
#include <MIDI.h>

class Arp {
	public:
		Arp(MIDI *midi);
		int getSteps();
		int getLength();
		int getTune(int step);
		void readFromSerial();
		void writeToSerial();
		void readFromMemory(int index);
		void writeToMemory(int index);
                void handleStart();
                void handleNoteOn();
                void handleNoteOff();
                void sync(); 
	private:
		int steps;
		int length;
		int tune[16];
                int syncc;
                int notes[3][3];
                int notec;
                MIDI * midi;
                int currentStep;
                int currentNote;
                boolean playing;
};

#endif
